package us.gaaoc.framework.webapp.backingbeans.clerk;

import us.gaaoc.framework.model.Documents;
import us.gaaoc.framework.webapp.backingbeans.BaseBackingBean;

/**
 * @author Sukahda Tapshalkar
 * Sep 20, 2006
 *
 */
public class ValidationScreenPage extends BaseBackingBean {
	
	/** Generated Serial Version UID */
	private static final long serialVersionUID = -1229272892704245671L;

	private Documents document;

	private boolean validCourtSeal;
	
	public ValidationScreenPage() {
		
	}
	
	/**
	 * @return the validCourtSeal
	 */
	public boolean isValidCourtSeal() {
		return validCourtSeal;
	}

	/**
	 * @param validCourtSeal the validCourtSeal to set
	 */
	public void setValidCourtSeal(boolean validCourtSeal) {
		this.validCourtSeal = validCourtSeal;
	}

	/**
	 * @return the document
	 */
	public Documents getDocument() {
		return document;
	}

	/**
	 * @param document the document to set
	 */
	public void setDocument(Documents document) {
		this.document = document;
	}
	/*
	private boolean validateCourtSeal(Documents doc) {
		boolean valid = false;
		CourtSeal cs = (CourtSeal)this.getModelFacade().findCourtSealByDocumentID(doc.getUuid());
		byte[] courtSealValue = cs.getCourtSealValue();
		byte[] certificateChain = cs.getCertificateChain();
		SignatureValidator sigVal = new SignatureValidator();
		valid = sigVal.validate(doc.getContent(), courtSealValue,certificateChain);
		return valid;
	}
	*/

}
